<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no">
    <title>日新网 - 问答订单</title>
    <link rel="stylesheet" href="__TMPL__Public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/reset.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/style.css">
    <script type="text/javascript" src="__TMPL__Public/assets/js/rem.js"></script>
    <style>
        .tab_nav li {
            width: 25%!important;
            text-align: center;
        }
        body {
            background-color: #fff!important;
        }
    </style>
</head>
<body>
<!--nav-->
<tc_include file="Public:nav"/>
<!--我的问答页-->
<div class="tab_nav " id="tab_nav">
    <ul class="comWidth clearfix index_ul">
        <li>问答订单(<span>{$count}</span>)</li>
    </ul>
</div>
<div id="tab_content">

    <div class="tab_content comWidth index_content">
        <volist name="lists" id="vo">
            <a href="{:U('Question/Question/question_info', ['id' => $vo['goods_id']])}">
                <div class="questions_item ">
                    <p class="text1 ellipsis2">{$vo.post_title}</p>
                    <p class="text2">
                        <span>{:time_format($vo['created_at'])}</span>
                    </p>
                </div>
            </a>
        </volist>
        <if condition="empty($lists)">
            <div style="width: 5rem;height: 3.8rem;position: absolute;top: 50%;left: 50%;margin-top: -1.9rem;margin-left: -2.5rem;">
                <img src="/public/images/img/replace.png" alt="" style="width: 100%;height: auto;">
            </div>
        </if>
    </div>

    <div style="height: .5rem;line-height: .5rem;background-color: #efdddd;" class="js-infinite-scroll-loading text-center">更多</div>
    <div id="nextpage"></div>
</div>

<!--页脚-->
<tc_include file="Public:footer"/>

<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.1.12.4.js"></script>
<script src="__TMPL__Public/assets/js/bootstrap.min.js" ></script>
<script src="__TMPL__Public/assets/js/jquery.infiniteScroll.js"></script>
<script>
    $(function () {
        // 加载更多
        $('#nextpage').infiniteScroll({
            loading:'.js-infinite-scroll-loading',
            total_pages:{$total_page},
            success:function(content){
                var $items = $(content).find('.index_content a');
                if ($items.length > 0) {
                    $('.index_content').append($items);
                }
            }
        });
    })
</script>
</body>
</html>